package com.xjc.business.service;

import com.xjc.business.entity.domain.ChatMsg;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjc.business.entity.vo.classadmin.ChatMsgContainer;
import com.xjc.business.entity.vo.stu.ClassAdminInfoVo;
import com.xjc.system.result.Result;

import java.util.List;

/**
* @author root
* @description 针对表【chat_msg(聊天消息表)】的数据库操作Service
* @createDate 2025-02-14 15:42:09
*/
public interface ChatMsgService extends IService<ChatMsg> {


    void updateMsgStatusById(List<Integer> msgId, Integer msgHasRead);

    /**
     * 获取聊天消息列表
     * @param classAdminIdKey 辅导员id
     * @return 数据
     */
    Result<List<ChatMsgContainer>> getChatMsgContainer(String classAdminIdKey);

    /**
     * 获取聊天消息
     * @param wxIdKey 微信id
     * @return 数据
     */
    Result<ChatMsgContainer> getStuChatMsgContainer(String wxIdKey);

    /**
     * 获取班级管理员名称
     * @param wxId 微信id
     * @return 数据
     */
    Result<ClassAdminInfoVo> getClassAdminName(String wxId);

    Long getMessageNumWithSessionId(String sessionId);

    ChatMsgContainer getWholeMsg(String wxId);
}
